package com.openway.game.field;

/**
 * Coordinate on the playing field.
 * Coordinate objects are immutable.
 */
public final class Coordinate {
    private final int row;
    private final int column;

    public Coordinate(int row, int column) {
        this.row = row;
        this.column = column;
    }

    public int getRow() {
        return row;
    }

    public int getColumn() {
        return column;
    }

    @Override
    public String toString() {
        return "(" + row + ", " + column + ')';
    }
}
